KKB = KKB or {}

function KKB.BoolToInt( bool )
	if ( bool ) then
		return 1
	end
	return 0
end

function KKB.IntToBool( int )
	if ( int == 0 ) then
		return false
	end
	return true
end

KKB.DB = nil
KKB.DBError = nil

KKB.UserGroups = KKB.UserGroups or {}
KKB.CustomUsers = KKB.CustomUsers or {}
KKB.ToolgunRestrictions = KKB.ToolgunRestrictions or {}
KKB.VehicleRestrictions = KKB.VehiclesRestrictions or {}
KKB.EntityRestrictions = KKB.EntityRestrictions or {}
KKB.WeaponRestrictions = KKB.WeaponRestrictions or {}
KKB.NPCRestrictions = KKB.NPCRestrictions or {}
KKB.BlockedModels = KKB.BlockedModels or {}
KKB.Buddies = KKB.Buddies or {}
KKB.Damage = KKB.Damage or {}
KKB.Damage.DMG_GENERIC = true
KKB.Damage.DMG_CRUSH = true
KKB.Damage.DMG_BULLET = true
KKB.Damage.DMG_SLASH = true
KKB.Damage.DMG_BURN = true
KKB.Damage.DMG_VEHICLE = true
KKB.Damage.Fall = true
KKB.Damage.Blast = true
KKB.Damage.Club = true
KKB.Damage.Shock = true
KKB.Damage.Sonic = true
KKB.Damage.EnergyBeam = true
KKB.Damage.PreventPhysicsForce = true
KKB.Damage.NeverGib = true
KKB.Damage.AlwaysGib = true
KKB.Damage.Drown = true
KKB.Damage.Paralyze = true
KKB.Damage.NerveGas = true
KKB.Damage.Poison = true
KKB.Damage.Radiation = true
KKB.Damage.DrownRecover = true
KKB.Damage.Acid = true
KKB.Damage.SlowBurn = true
KKB.Damage.RemoveNoRagdoll = true
KKB.Damage.Physgun = true
KKB.Damage.Plasma = true
KKB.Damage.Airboat = true
KKB.Damage.Dissolve = true
KKB.Damage.BlastSurface = true
KKB.Damage.Direct = true
KKB.Damage.Buckshot = true

KKB.Settings = KKB.Settings or {}
KKB.Settings.Server = KKB.Settings.Server or {}
KKB.Settings.Server.SpawnTime = 1
KKB.Settings.Server.CleanupTime = 300
KKB.Settings.Toolguns = KKB.Settings.Toolguns or {}
KKB.Settings.Toolguns.Blacklist = false
KKB.Settings.Vehicles = KKB.Settings.Vehicles or {}
KKB.Settings.Vehicles.Blacklist = false
KKB.Settings.Entitys = KKB.Settings.Entitys or {}
KKB.Settings.Entitys.Blacklist = false
KKB.Settings.Weapons = KKB.Settings.Weapons or {}
KKB.Settings.Weapons.Blacklist = false
KKB.Settings.NPCs = KKB.Settings.NPCs or {}
KKB.Settings.NPCs.Blacklist = false

	KKB.Buddies[1229] = {}
	KKB.Buddies[1229][1234321212] = {}
	KKB.Buddies[1229][1234321212].Nick = "Hi My Name Is Joe"